#ifndef CPMAGNETICFIELDMAPOBJECT_H
#define CPMAGNETICFIELDMAPOBJECT_H

#include <TObject.h>
#include <TVector3.h>
class CpMagneticFieldMapObject : public TObject {
public:
   CpMagneticFieldMapObject();
   ~CpMagneticFieldMapObject();

   void Clear();
   void Print();

   Double_t GetPos(const Int_t &index = 0) { return fPos[index]; }
   void SetPosition(const Double_t &x, const Double_t &y, const Double_t &z) ;

   Double_t GetMagField(const Int_t &index = 0) { return fMagField[index]; }
   void SetMagField(const Double_t &bx, const Double_t &by, const Double_t &bz) ;
   void SetMagField(const Double_t &newValue, const Int_t &index = 0) { fMagField[index] = newValue; }


private:

   Double_t    fPos[3];
   Double_t    fMagField[3];

   ClassDef(CpMagneticFieldMapObject, 1);
};

#endif
